public class Teacher {
    private String name = "Jack";
    private String profession = "Computer";
    private String teachingLesson = "Java";
    private int teachingYears = 5;

    public static void main(String[] args) {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getTeachingLesson() {
        return teachingLesson;
    }

    public void setTeachingLesson(String teachingLesson) {
        this.teachingLesson = teachingLesson;
    }

    public int getTeachingYears() {
        return teachingYears;
    }

    public void setTeachingYears(int teachingYears) {
        this.teachingYears = teachingYears;
    }

    public Teacher () {

     }

     public void displayInfo () {
         System.out.println(name +" "+ profession +" "+ teachingLesson + " "+teachingYears);
     }
}
